package org.wsiz.vro.repository;

import org.springframework.stereotype.Service;
import org.wsiz.vro.domain.Role;
import org.wsiz.vro.util.ValueGenerator;

/**
 * Helper class to create transient entities instance for testing purposes.
 * Simple properties are pre-filled with random values.
 */
@Service
public class RoleGenerator {

    /**
     * Returns a new Role instance filled with random values.
     */
    public Role getRole() {
        Role role = new Role();

        // simple attributes follows
        role.setRoleName(ValueGenerator.getUniqueString(255));
        return role;
    }

}